package com.example.feignclient.client;

import com.example.feignclient.Entity.Transaction;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 76004
 * @apiNote
 * @date 2023/1/18 12:31
 */
@FeignClient("transactionService")
public interface TransactionClient {
    @GetMapping("/selectTransactionById/{id}")
    Transaction selectTransactionById(@PathVariable("id") long id);
}
